MVC5 Classic
Step 2 of 5: Add a Model
   

Create a POCO (Plain Old CLR Objects) model for TahDoList and TahDoItem.

  1. Right-click the Models folder in the Solution Explorer and choose Add | Class.
  2. Name the class ToDo.cs and click Add.
  3. Add the following directive statement so you can use data annotations to define the model.

    Visual Basic

    C#

  4. Add the following stored procedures. Notice that the first class was renamed TahDoList.

    Visual Basic

    C#

In the next step, you'll add a reference to the Entity Framework.

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum |  Documentation Feedback